package 作业;

import java.io.*;

public class Demo3 {
    public static void main(String[] args) throws FileNotFoundException {
/*        try (PrintWriter ps = new PrintWriter(new FileOutputStream("Day11_io\\src\\作业\\xiaoheizi.txt"))) {
            ps.println("123");
            ps.print(666);
            ps.write(123);
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        }*/
    }
}
/*public class Demo3 {
    public static void main(String[] args) {
        try {
            Reader fr = new FileReader("io-app2\\src\\itheima04.txt");
            // 创建一个字符缓冲输入流包装原始的字符输入流
            BufferedReader br = new BufferedReader(fr);
            String line; // 记住每次读取的一行数据
            while ((line = br.readLine()) != null*//*-1*//*) {
                System.out.println(line);
            }
            br.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}*/
